package com.r2coding.article.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.r2coding.article.entity.ArticleEntity;
import com.r2coding.article.vo.req.CategoryReqVo;
import com.r2coding.article.vo.req.GetArticlesByIdReqVo;
import com.r2coding.article.vo.req.UpdateCategoryReqVo;
import com.r2coding.article.vo.resp.*;
import com.r2coding.common.util.PageUtils;
import com.r2coding.article.entity.CategoryEntity;

import java.util.List;
import java.util.Map;
/**
 * 
 *
 * @author 98k灬
 * @email hk666zx@163.com
 * @date 2022-04-13 19:34:16
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void deleteCategory(Integer id);

    void updateCategory(UpdateCategoryReqVo reqVo);

    List<CategoryCountResp> categoryCount();

    PageInfo<ArticleEntity> getArticlesById(GetArticlesByIdReqVo reqVo);

    ContributeDateRespVo getContributeDate();

    List<CategoryCount> getCategoryCount();

    ArticleRespVo getByCategoryId(CategoryReqVo req);

    List<CategoryEntity> categoryList();
}

